{% extends "base.html" %}

{% block content %}
    <h2>上级审批</h2>
     <div style="overflow:auto;height=491">
      <table class="list" width="100%">
        <thead>
          <tr>
            <th>报表标题</th>
            <th>报表关键字</th>
            <th>报表创建人</th>
            <th>报表类型</th>
            <th>开始时间</th>
            <th>结束时间</th>
            <th>审批人</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          {%for approve in list.object_list%}
          <tr>
            <td>{{approve.schedule.title}}</td>
            <td>{{approve.schedule.keyword}}</td>
            <td>{{approve.schedule.created_by.last_name}}</td>
            <td>{{approve.schedule.schedule_type.name}}</td>
            <td>{{approve.schedule.start_date|date:"Y-m-d"}}</td>
            <td>{{approve.schedule.end_date|date:"Y-m-d"}}</td>
            <td>{{approve.created_by.last_name}}</td>
            <td><a href="/schedule/view/{{approve.schedule_id}}" target="dialog" rel="view_schedule" title="查看计划">查看计划</a>&nbsp;&nbsp;<a href="/approved/view/{{approve.id}}" target="dialog" rel="view_approve" title="查看审批">查看审批</a></td>
          </tr>
          {%endfor%}
        </tbody>
      </table>
    </div>
    <div class="panelBar hover">
      <div class="pagination" targettype="navTab" totalcount="{{list.count}}" numperpage="10" pagenumshown="10" currentpage="{{list.number}}"></div>
    </div>
{% endblock %}